package com.zheng.shop.rpc.api;

import com.alibaba.fastjson.JSONArray;
import com.zheng.common.base.BaseService;
import com.zheng.shop.common.exception.ShopException;
import com.zheng.shop.dao.model.ShopAttributeKey;

import java.util.List;

/**
* ShopProductAttributeKeyService接口
* Created by shuzheng on 2017/11/7.
*/
public interface ShopAttributeKeyService extends BaseService<ShopAttributeKey> {
    boolean createProductAttribute(Integer productCategoryId,String key,List<String> values) throws ShopException;

    boolean updateProductAttribute(Integer keyId,String key,List<String> values) throws ShopException;

    boolean deleteProductAttribute(Integer keyId) throws ShopException;

    boolean deleteProductAttribute(List<Integer> keyIdList) throws ShopException;

    boolean copyProductAttribute(List<Integer> kyIds,Integer productCategoryId) throws ShopException;

    JSONArray getKeyValueJson(Integer productCategoryId);

    boolean selectImage(Integer id,boolean hasImage)throws ShopException;
}